//
//  YJCountyMOdel.m
//  YJB
//
//  Created by 韦朝宾 on 16/5/28.
//  Copyright © 2016年 YJB. All rights reserved.
//

#import "YJCountyModel.h"

@implementation YJCountyModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init])
    {
        _county = dict[@"DivisionName"];
    }
    return self;
}

+ (instancetype)countyWithDict:(NSDictionary *)dict
{
    return[[self alloc]initWithDict:dict];
}

+ (NSMutableArray *)countyWithArray:(NSArray *)array
{
    NSMutableArray *arrayM = [NSMutableArray array];
    for (int i = 0; i < array.count; i ++)
    {
      NSDictionary *dict = array[i];
      YJCountyModel *countyModel = [self countyWithDict:dict];
        [arrayM addObject:countyModel];
    }
    return arrayM;
}

@end
